<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../org/angular.min.js"></script>
</head>
<body ng-app="hd">
<div ng-controller="ctrl">

{{data}}
</div>
<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {
       $scope.data = {name: '后盾人'};
        console.log($scope.data);
       localStorage.setItem('data', angular.toJson($scope.data));
    }]);

</script>
</body>
</html>